using System.Collections.Generic;
using System.Text.Json.Serialization;

namespace JQData.Core.TushareSDK.Models
{
    public class TushareResponse<T>
    {
        [JsonPropertyName("code")]
        public int Code { get; set; }

        [JsonPropertyName("msg")]
        public string Msg { get; set; }

        [JsonPropertyName("request_id")]
        public string RequestId { get; set; }

        [JsonPropertyName("data")]
        public TushareData<T> Data { get; set; }

    }

    public class TushareData<T>
    {
        [JsonPropertyName("fields")]
        public List<string> Fields { get; set; }

        [JsonPropertyName("items")]
        public List<T> Items { get; set; }
    }
}